home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / S / Smaller Installer 1.0.2 / Hook Proc Examples / QD32Hook / SIHookProc.h < prev   
Encoding:
C/C++ Source or Header  |  1992-12-19  |  1.9 KB  |  45 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2. *                                                                                                        *
  3. *                                         Smaller Installer™                                        *
  4. *                                                                                                        *
  5. *                                        © 1992 Bill Goodman                                        *
  6. *                                        All Rights Reserved                                        *
  7. *                                                                                                        *
  8. *******************************************************************************
  9.  
  10.     This header defines the Installer Hook Procedure interface.
  11.  
  12. ******************************************************************************/
  13.  
  14.  
  15. /******************************************************************************
  16.     Installer Hook Parameter Block Definition
  17. ******************************************************************************/
  18. typedef struct
  19.     {
  20.     short function;                /* Function to perform: */
  21. #define siHookSetTargetVol            1    /* Set target volume */
  22. #define siHookBeginInstall            2    /* Begin install */
  23. #define siHookEndInstall            3    /* End install */
  24.  
  25.     short targetVRefNum;            /* Volume reference number of target volume */
  26.  
  27.     short groupAPFlags;            /* Group A-P flags (MSB:P -- LSB:A) */
  28.     short groupQUSel;                /* Group Q-U selector (0:Q -- 4:U) */
  29.     short groupVZSel;                /* Group V-Z selector (0:V -- 4:Z) */
  30.  
  31.     short completionSts;            /* Completion status for EndInstall */
  32. #define siHookComplete                0    /* Install completed without error */
  33. #define siHookFileSkipped            1    /* Install completed but some files were skipped */
  34. #define siHookAborted                2    /* Install was aborted due to errors or user cancellation */
  35.  
  36.     short result;                    /* Returned result */
  37. #define siHookNoErr                    0    /* No error */
  38. #define siHookAbort                    1    /* Error - abort installation */
  39.     } SIHookParmBlk;
  40.  
  41.  
  42. /******************************************************************************
  43.     Hook Procedure Definition
  44. ******************************************************************************/
  45. typedef pascal void (*SIHookProcPtr)(SIHookParmBlk *parmBlk);